<?php

/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 fdm=marker: */

/**
 * LightBot_Protocol_Gtalk_ProtocolAdapter
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://framework.zend.com/license/new-bsd
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@zend.com so we can send you a copy immediately.
 *
 * @category  LightBot
 * @package   LightBot_Protocol_Gtalk
 * @copyright Copyright (c) 2008 Olivier Hoareau <hoareau.olivier@gmail.com>
 * @author    Olivier Hoareau <hoareau.olivier@gmail.com>
 * @license   License http://framework.zend.com/license   New BSD License
 * @version   $Id:$
 */

require_once dirname(__FILE__) . '/../Jabber/ProtocolAdapter.php';

// {{{ LightBot_Protocol_Gtalk_ProtocolAdapter

/**
 * Gtalk Protocol Adapter
 *
 * @category  LightBot
 * @package   LightBot_Protocol_Gtalk
 * @copyright Copyright (c) 2008 Olivier Hoareau <hoareau.olivier@gmail.com>
 * @author    Olivier Hoareau <hoareau.olivier@gmail.com>
 * @license   License http://framework.zend.com/license   New BSD License
 */
class LightBot_Protocol_Gtalk_ProtocolAdapter extends LightBot_Protocol_Jabber_ProtocolAdapter
{
    // {{{ configure()

    /**
     * Configures the protocol adapter with the specified configuration settings
     *
     * @param  mixed     $conf array
     * @return LightBot_IProtocolAdapter  $this
     * @throws Exception if an error occured
     */
    public function configure($conf)
    {
        if(!array_key_exists('realhost',$conf)) $conf['realhost'] = 'talk.google.com';
        parent::configure($conf);
        return $this;
    }

    // }}}
}   

// }}}

/*
 * Local variables:
 * tab-width: 4
 * c-basic-offset: 4
 * c-hanging-comment-ender-p: nil
 * End:
 */
